]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Do not reset to initial page on unmap
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 21 Jan 2020 15:35:07 +0000 (16:35 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 21 Jan 2020 16:58:17 +0000 (16:58 +0000)
It will happen before next map anyway, and most notably at times
actor sizes produce correct results.

Fixes oddities in emoji pager visibility after showing the emoji
panel, moving to another page, and hiding the OSK with the downward
arrow button. The next time the emoji panel would be shown, panels
had a chance to remain invisible.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/943

js/ui/keyboard.js

index 7f7e8a4e5c9a315c5138a7075058ba1e54cc741a..3a32962007e5a42b70c2e00149c0ad949caf7acc 100644 (file)
@@ -942,11 +942,6 @@ var EmojiSelection = GObject.registerClass({
         super.vfunc_map();
     }
 
-    vfunc_unmap() {
-        super.vfunc_unmap();
-        this._emojiPager.setCurrentPage(0);
-    }
-
     _onPageChanged(sectionLabel, page, nPages) {
         this._curPage = page;
         this._pageIndicator.setNPages(nPages);